*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
*
* Diehl/Wolter: “ATTITUDES ABOUT CONTAINMENT MEASURES DURING
*                THE 2020/2021 CORONAVIRUS PANDEMIC: 
*                SELF-INTEREST, OR BROADER POLITICAL ORIENTATIONS?"
*
* Root Do-File for everything: data preparation and analysis
*
* This version: 20210413
*
* Author: Felix Wolter, felix.wolter@uni-konstanz.de
*
*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

*Get Stata ready
capture log close
log using "Diehl Wolter Log File.log", replace text
version 16.1
set more off, permanently
set linesize 255
clear all
cls

cd "C:\Users\Felix Wolter\Documents\Corona\Analyse\Article DiehlWolter2021"

*Prepare Spring 2020 survey
do varprepspring.do

*Prepare November 2020 survey
do varprepnov.do

*Append two datasets
keep id sample time open* zopen* znowopenindex sttwork-sttecon idtwork-idtecon ///
   leftright* partypref trust* doubt* gentrust protransfer riskgroup* health badhealth contact ///
   lsatisfac female age agedec old east eastchild habitation mig children* educ* ///
   unemployed partner persweight eastaffil fullossi lagbehind incloss ///
   kr*
append using springdatatemp.dta , ///
   keep(id sample time open* zopen* znowopenindex sttwork-sttecon idtwork-idtecon ///
   leftright* partypref trust* doubt* gentrust protransfer riskgroup* health badhealth contact ///
   lsatisfac female age agedec old east eastchild habitation mig children* educ* ///
   unemployed partner persweight eastaffil fullossi lagbehind incloss kr*)

*Analysis
do descriptives.do
do regressions.do
do "robustness analysis descriptives.do"
do "robustness analysis regressions.do"
do "robustness suest descriptives.do"
do "robustness suest regressions.do"


